<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>login</title>
    <script type="text/javascript" src="https://unpkg.com/ming_mock/index.js"></script>
</head>
<body>

</body>
</html>

<script>
    window.onload=()=>{
        let {openid,originalUrl}= M.urlParse(window.location.href);
        M.request.get("/open/member/login",{
            openid
        }).then(d=>{
            console.log(d,"AAAAAAAAAAAAAAAAA")
           if(d.code==0){
               setTimeout(()=>{
                   location.href=originalUrl;
               },50)
           }else {
               alert("登陆失败")
           }
        })
    }
</script>